uploadCover = function(strToken) {
	$strImage	= $('#pimage').val();
	if(!validateImage($strImage)) {
		alert(image_format);
		return false;
	}
	if(!validateImgSize('pimage')) {
		alert(image_size);
		return false;
	}
	var msg = 	'<p align="center"><img src="'+HOST_STATICS+'img/bg/loading-bar.gif" alt="loading" width="88" height="7" border="0" /></p><p align="center">'+image_uploading+'.</p><p>&nbsp;</p>';
	$.blockUI({
		message: msg, 
		css: {
			width:'330px', 
			top: (($(window).height()-100)/2) + 'px', 
			left:(($(window).width()-300)/2) + 'px',
			zIndex: 10001,
			cursor: 'default'
		}, 
		overlayCSS: {
			zIndex: 10000,
			cursor: 'default'
		}
	});
	
	$.ajaxFileUpload ({
		url:			HOST_VFRIEND + 'ajax/coverup?token='+strToken,
		secureuri:		false,
		fileElementId:	'pimage',
		dataType: 		'json',
		data:{
			name:'logan', 
			id:'id'
		},
		success: function (data, status)
		{
			if(typeof(data.error) != 'undefined')
			{
				var strMsg = data.msg;
				if(data.error == 0) {
					$.getJSON(				
						HOST_VFRIEND + 'ajax/cover?type=1&callback=?',		
						function(response) {					
							$('#idCover').html(response['dhtml']);
							$('#coverAdmin .check').hide();
							$('#nVon').html(response['von']);
						}
					);
					closeUI();
					$('#pimage').val('');					
					showUIMessage(strMsg);
				} else {
					closeUI();
					alert(strMsg);
				}
			}
		},
		error: function (data, status, e)
		{
			
			closeUI();				
			alert(image_error);
		}
	});
}